//
//  CYView.h
//  CaiYun
//
//  Created by 今日信息科技 on 2017/9/9.
//  Copyright © 2017年 今日信息科技. All rights reserved.
//

#import <UIKit/UIKit.h>
/**
 *@pragma CYView的边框
 */
typedef enum{
    LineNormal,
    LineTop,
    LineLeft,
    LineRight,
    LineBottom
    
} LineLayout;
@interface CYView : UIView
@property (nonatomic, assign) CGFloat lineWidth;
/**
 *@pragma color:背景颜色
 */
- (instancetype)initWithColor:(UIColor *)color;

/**
 *@pragma color:背景颜色 line:下划线布局  linecolor:下划线颜色
 */
- (instancetype)initWithColor:(UIColor *)color line:(LineLayout)layout lineColor:(UIColor *)linecolor;
/**
 *@pragma 遍历view的子视图
 */
- (void)ergodicSubView:(void(^)(CYView *view))view;
@end
